import { ref, reactive } from "vue";
export let dialogFormVisible = ref<Boolean>(false);
export let dialogEditVisible = ref<Boolean>(false);
export let editVisible = ref<Boolean>(false);
export interface StatusItem {
  0: Number;
  1: Number;
}
export interface CategoryItem {
  name: String;
  parent_id: Number;
  id: Number
}
export const categotyItem = reactive({
  name: '',
  parent_id: 0,
  id: ''
})
export const queryInfo = reactive({
  page: 1,
  pageSize: 20,
  name: ''
})
export const statusType = {
  0: '下架',
  1: '上架'
}
export const chargeArr = [
  {
    label: '免费',
    value: 0
  },
  {
    label: '收费',
    value: 1
  }
]